            {include file="common/header,common/navbar,common/top"}

            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-sm-4">
                    <h2>欢迎使用...后台管理系统！</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.html">系统设置</a>
                        </li>
                        <li class="active">
                            <strong>配置列表</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-sm-8">
                    <div class="title-action">
                        <a href="{:url('conf/lst')}" class="btn btn-primary">配置列表</a>
                    </div>
                </div>
            </div>

            <!-- 内容开始 -->
            <div class="wrapper wrapper-content">
                <div class="row">                   
                        <div class="col-lg-12">
                            <div class="ibox float-e-margins">
                                <div class="ibox-title">
                                    <h5>增加分类</h5>
                                    <div class="ibox-tools">
                                        <a class="collapse-link">
                                            <i class="fa fa-chevron-up"></i>
                                        </a>
                                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                                            <i class="fa fa-wrench"></i>
                                        </a>
                                        <ul class="dropdown-menu dropdown-user">
                                            <li><a href="form_basic.html#">Config option 1</a>
                                            </li>
                                            <li><a href="form_basic.html#">Config option 2</a>
                                            </li>
                                        </ul>
                                        <a class="close-link">
                                            <i class="fa fa-times"></i>
                                        </a>
                                    </div>
                                </div>
                                <div class="ibox-content">
                                    <form class="form-horizontal">
                                        <!-- 表单 -->
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="tabs-container">
                                                    <ul class="nav nav-tabs">
                                                        <li class="active"><a data-toggle="tab" href="tabs.html#tab-1" aria-expanded="true">基本信息设置</a></li>
                                                        <li class=""><a data-toggle="tab" href="tabs.html#tab-2" aria-expanded="false">联系方式</a></li>
                                                        <li class=""><a data-toggle="tab" href="tabs.html#tab-3" aria-expanded="false">SEO设置</a></li>
                                                    </ul>
                                                    <div class="tab-content">
                                                        <div id="tab-1" class="tab-pane active">
                                                            <div class="panel-body">
                                                            {volist name="confRes" id="conf"}
                                                                {if condition="$conf->cf_type eq 1"}
                                                                <div class="form-group">
                                                                    <label class="col-sm-2 control-label">{$conf->cname}</label>   
                                                                    <!-- 第一个Tab -->
                                                                    {if condition="$conf->dt_type eq 4"}
                                                                    <div class="col-sm-6">
                                                                        <select class=" form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true" name="dt_type">
                                                                            <option value="1">请选择</option>
                                                                        
                                                                             {$conf->dt_type|dt_type=###,$conf}
                                                                        </select>
                                                                    </div>
                                                                    
                                                                    {else/}
                                                                    <div class="col-sm-6">
                                                                         {$conf->dt_type|dt_type=###,$conf}
                                                                    </div>
                                                                    {/if}   
                                                                   <div class="col-sm-4"><span class="badge badge-danger">*必填</span></div>    
                                                                </div>
                                                                {/if}
                                                            {/volist}
                                                            </div>
                                                        </div>
                                                        <div id="tab-2" class="tab-pane">
                                                            <div class="panel-body">
                                                            {volist name="confRes" id="conf"}
                                                                {if condition="$conf->cf_type eq 2"}
                                                                <div class="form-group">
                                                                    <label class="col-sm-2 control-label">{$conf->cname}</label> 
                                                                     <!-- 第2个Tab -->
                                                                    {if condition="$conf->dt_type eq 4"}
                                                                    <div class="col-sm-6">
                                                                        <select class=" form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true" name="dt_type">
                                                                            <option value="1">请选择</option>

                                                                             {$conf->dt_type|dt_type=###,$conf}
                                                                        </select>
                                                                    </div>
                                                                    {else/}
                                                                    <div class="col-sm-6">
                                                                       {$conf->dt_type|dt_type=###,$conf}
                                                                    </div>
                                                                    {/if}
                                                       <div class="col-sm-4"><span class="badge badge-danger">*必填</span></div>    
                                                                </div>
                                                                {/if}
                                                            {/volist}

                                                            </div>
                                                        </div>                                                        
                                                        <div id="tab-3" class="tab-pane">
                                                            <div class="panel-body">
                                                            {volist name="confRes" id="conf"}
                                                                {if condition="$conf->cf_type eq 3"}
                                                                <div class="form-group">
                                                                    <label class="col-sm-2 control-label">{$conf->cname}</label>  
                                                                     <!-- 第3个Tab -->
                                                                    {if condition="$conf->dt_type eq 4"}
                                                                    <div class="col-sm-6">
                                                                        <select class=" form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true" name="dt_type">
                                                                            <option value="1">请选择</option>
                                                                             {$conf->dt_type|dt_type=###,$conf}
                                                                        </select>
                                                                    </div>
                                                                    
                                                                    {else/}
                                                                    <div class="col-sm-6">
                                                                          {$conf->dt_type|dt_type=###,$conf}
                                                                    </div>
                                                                    {/if}
                                                                    <div class="col-sm-4"><span class="badge badge-danger">*必填</span></div>    
                                                                </div>
                                                                {/if}
                                                            {/volist}
                                                            </div>
                                                        </div>
                                                        <div class="hr-line-dashed"></div>
                                                    </div>
                                            </div>                                    
                                        </div>

                                        <div class="text-center">
                                            <button type="submit" class="btn btn-w-m btn-primary ">确定</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>                    
            </div>
            <!-- 内容结束 -->
            {include file="common/footer"}

